package com.mokairui.design.creatormodel.factorymethod;

/**
 * @Program: basic-summary
 * @Description:
 * @Author Mokairui
 * @Date 2021/5/31 21:14
 */
public class CoffeeStore {
    private CoffeeFactory coffeeFactory;

    public void setCoffeeFactory(CoffeeFactory coffeeFactory) {
        this.coffeeFactory = coffeeFactory;
    }

    public Coffee orderCoffee() {
        return coffeeFactory.createCoffeeFactory();
    }
}
